package it.avantsoft.ls.peer.command;

import it.avantsoft.ls.peer.PeerHandler;

/**
 * Created by IntelliJ IDEA.
 * User: blackmore
 * Date: 27-lug-2008
 * Time: 16.47.06
 * To change this template use File | Settings | File Templates.
 */
public class ExecuteHorizontalBalanceCommand extends PeerCommand {
    private String exchangeablePeer;
    private String designedGroupLeaderHost;
    private int designedGroupLeaderListeningPort;

    public ExecuteHorizontalBalanceCommand(PeerHandler peerHandler, String exchangeablePeer, String designedGroupLeaderHost, int designedGroupLeaderListeningPort) {
        super(peerHandler);
        this.exchangeablePeer = exchangeablePeer;
        this.designedGroupLeaderHost = designedGroupLeaderHost;
        this.designedGroupLeaderListeningPort = designedGroupLeaderListeningPort;
    }

    public void execute() {
        getPeer().executeHorizontalBalanceCommand(exchangeablePeer, designedGroupLeaderHost, designedGroupLeaderListeningPort);
    }
}
